import request from '@/utils/http';

// 获取预约列表
export const getPageRequest = (data: object) => {
  return request.post('/check-reserve/list', data);
};

// 新增 
export const AddPageRequest = (data: object) => {
  return request.post('/check-reserve', data);
};

// 同意
export const AddPageRequestPut = (data: object) => {
  return request.put('/check-reserve', data);
};

//预约日历


export const getCalendar = (checkPointId:string) => {
  return request.get(`/check-reserve/calendar/${checkPointId}`);
};

// 获取监测点的健康顾问
export const getCheckHealth = (checkPointId:string) => {
  return request.get(`/check-reserve/check-health/${checkPointId}`);
};

// 取消预约
export const cancelReserve = (data: object) => {
  return request.post('/check-reserve/cancel', data);
};


// 同意
export const getReserveDetail = (reserveId: string) => {
  return request.get(`/check-reserve/${reserveId}`);
};

// 获取待预约的条数
// 同意
export const getTips = () => {
  return request.get(`/check-reserve/tips`);
};
